CC = iccavr
LIB = ilibw
CFLAGS =  -e -D__ICC_VERSION=722 -DATMega128  -l -g -MLongJump -MHasMul -MEnhanced -Wf-use_elpm 
ASFLAGS = $(CFLAGS) 
LFLAGS =  -g -e:0x20000 -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:30 -beeprom:0.4096 -fihx_coff -S2
FILES = main.o delay.o ds18b20.o eeprom.o key16.o lcd12864.o twi-iic.o usart.o 

PROJECT1:	$(FILES)
	$(CC) -o PROJECT1 $(LFLAGS) @PROJECT1.lk   -lcatm128
main.o: D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h D:\iccavr\include\string.h D:\iccavr\include\_const.h .\delay.h .\ds18b20.h .\lcd12864.h .\usart.h .\twi-iic.h .\eeprom.h .\key16.h
main.o:	main.c
	$(CC) -c $(CFLAGS) main.c
delay.o: .\delay.h
delay.o:	delay.c
	$(CC) -c $(CFLAGS) delay.c
ds18b20.o: D:\iccavr\include\iom128v.h .\ds18b20.h .\delay.h
ds18b20.o:	ds18b20.c
	$(CC) -c $(CFLAGS) ds18b20.c
eeprom.o: .\eeprom.h D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h
eeprom.o:	eeprom.c
	$(CC) -c $(CFLAGS) eeprom.c
key16.o: .\key16.h D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h .\delay.h
key16.o:	key16.c
	$(CC) -c $(CFLAGS) key16.c
lcd12864.o: .\lcd12864.h D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h .\ASCIIziku.h .\eeprom.h
lcd12864.o:	lcd12864.c
	$(CC) -c $(CFLAGS) lcd12864.c
twi-iic.o: .\twi-iic.h .\delay.h D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h
twi-iic.o:	twi-iic.c
	$(CC) -c $(CFLAGS) twi-iic.c
usart.o: .\usart.h D:\iccavr\include\iom128v.h D:\iccavr\include\macros.h D:\iccavr\include\AVRdef.h .\delay.h
usart.o:	usart.c
	$(CC) -c $(CFLAGS) usart.c
